package net.println.kotlin.chapter4

fun main(args: Array<String>) {
    val a = minOf(1,3)

}

class Latitude private constructor(val value: Double) {
    companion object {
        @JvmStatic
        fun ofDouble(double: Double):Latitude {
            return Latitude(double)
        }

        fun ofLatitude(latitude: Latitude):Latitude {
            return Latitude(latitude.value)
        }

        @JvmField
        val TAG = "Latitude"
    }
}